﻿[#include "../include/html_header.html"/]
<script src="${base}/thirdparty/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $("#baseForm").validate();
    });

    function checkStatus(status) {
        if (status == 1) {
            $("#status").attr("value", '');
            $("#useStatus").attr("value", '');
        } else {
            $("#status").attr("value", status);
            $("#useStatus").attr("value", '');
        }
        $("#baseForm").submit();
    }

    function checkStatus(status) {
        $("#status").attr("value", status);
        $("#baseForm").submit();
    }
</script>

</head>
<body>
[#include "../include/html_header_top.html"/]

<div class="am-container">
    <div class="am-cf admin-main">
        <!-- sidebar start -->
        [#include "member_nav.html"/]
        <div class="admin-content">

         <div class="am-u-sm-12"><span>账户明细</span> <a href="" target="_blank"
                                                              style="color: #1A66B3;float:right;">充值</a></div>
            <div class="am-u-sm-12">
            <ul>
                <li><a href="#wx">您目前的账户余额为：<font color="red" size="3"><b>${member.money!} </b></font>元</a></li>
            </ul>
        </div>
            <div class="am-u-sm-12">
            <form id="baseForm" action="mymoney.htm" method="post" class="am-form">
                <input type="hidden" id="status" name="status" value="${status!}"/>
                <div id="queryCodeNum">
                    时间:<input type="text" name="startTime" [#if startTime??]value="${startTime!}"[/#if]
                    onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:100px;display:inline;"/>至:
                    <input type="text" name="endTime" [#if endTime??]value="${endTime!}"[/#if]
                    onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" style="width:100px;display:inline;"/>
                    <input id="toQuery" type="submit" value="查询"/>
                </div>

                <div class="am-u-sm-12 am-u-sm-centered">
                    <div class="am-tabs am-margin" data-am-tabs>
                        <ul class="am-tabs-nav am-nav am-nav-tabs">
                    <li [#if !(status??)]class="ks-active"[/#if]><a href="javascript:vodi(0);" onclick="checkStatus(1);">全部明细
                    [@money_page count='10'](${tag_pagination.totalCount})[/@money_page]</a></li>
                    <li [#if status??&status==1]class="ks-active"[/#if]><a href="javascript:vodi(0);"
                                                                       onclick="checkStatus(1);">全部收入[@money_page
                    status='1' count='10'](${tag_pagination.totalCount})[/@money_page]</a></li>
                    <li  [#if status??&status==0]class="ks-active"[/#if]><a href="javascript:vodi(0);"
                                                                       onclick="checkStatus(0);">全部支出[@money_page
                    status='0' count='10'](${tag_pagination.totalCount})[/@money_page]</a></li>
                </ul>

                        <div class="am-tabs-bd">
                            <div class="am-tab-panel am-fade am-in am-active" id="tab">
                                <div class="am-g am-margin-top">
                        <table class="am-table">
                            <thead>
                            <tr>
                                <th width="225" style="text-align:left; padding-left:20px;">来源 / 用途</th>
                                <th width="60">收入</th>
                                <th width="75">支出</th>
                                <th width="105">日期</th>
                                <!-- <th width="105">节省</th> -->
                                <th width="50">备注</th>
                            </tr>
                            </thead>
                            <tbody>
                            [@money_page status=status startTime=startTime endTime=endTime count='10']
                            [#if tag_list?size gt 0]
                            [#list tag_list as shopMoney]
                            <tr>
                                <td style="text-align:left;vertical-align: middle; height:60px;">

                                </td>
                                <td></td>
                                <td></td>
                                <td>${shopMoney.scoreTime!}</td>
                                <!--  <td></td> -->
                                <td>${shopMoney.remark!}</td>
                            </tr>
                            [/#list]
                            <tr align="center">
                                <td colspan="5">[@pagination_style sysPage='1'/]</td>
                            </tr>
                            [#else]
                            <tr align="center">
                                <td colspan="5"> 暂时没有账户出入明细！</td>
                            </tr>
                            [/#if]
                            [/@money_page]
                            </tbody>
                        </table>
                    </div>
                                </div>
                </div>
            </form>
        </div>
            </div>
        </div>
    </div>
    </div>
</div>
<div class="clear"></div>

[#include "../include/footer.html"/]
</body>
</html>